package thread.my_thread2;

public class MyThreadTest {
    public static void main(String[] args) {
        MyThread2 myThread2 = new MyThread2();

        Thread t1  = new Thread(myThread2);
        Thread t2  = new Thread(myThread2);
        //参数一样，表示这两个线程执行的任务是一样的
        t1.setName("t1");
        t2.setName("t2");
        t1.start();
        t2.start();


    }
}
